<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:replace="common/top"></div>

<div id="BackLink">
    <a href="/catalog/view">Return to Main Menu</a>
</div>

<div id="Catalog">

    <h2>please fill in new information of the order you choose:</h2>

    <!--    todo:提交到后台-->
    <form action="/viewOrder/confirmOrder">
        <table>
            <tr><th>orderID:</th><th><input readonly type="text" th:value="${choosedOrder.orderId}" name="orderId"></th></tr>
            <tr><th>username:</th><th><input readonly type="text" th:value="${choosedOrder.username}" name="username"></th></tr>
            <tr><th>orderDate:</th><th><input type="text" th:value="${choosedOrder.orderDate}" name="orderDate"></th></tr>
            <tr><th>shipAddress1:</th><th><input type="text" th:value="${choosedOrder.shipAddress1}" name="shipAddress1"></th></tr>
            <tr><th>shipAddress2:</th><th><input type="text" th:value="${choosedOrder.shipAddress2}" name="shipAddress2"></th></tr>
            <tr><th>shipCity:</th><th><input type="text" th:value="${choosedOrder.shipCity}" name="shipCity"></th></tr>
            <tr><th>shipState:</th><th><input type="text" th:value="${choosedOrder.shipState}" name="shipState"></th></tr>
            <tr><th>shipZip:</th><th><input type="text" th:value="${choosedOrder.shipZip}" name="shipZip"></th></tr>
            <tr><th>shipCountry:</th><th><input type="text" th:value="${choosedOrder.shipCountry}" name="shipCountry"></th></tr>
            <tr><th>billAddress1:</th><th><input type="text" th:value="${choosedOrder.billAddress1}" name="billAddress1"></th></tr>
            <tr><th>billAddress2:</th><th><input type="text" th:value="${choosedOrder.billAddress2}" name="billAddress2"></th></tr>
            <tr><th>billCity:</th><th><input type="text" th:value="${choosedOrder.billCity}" name="billCity"></th></tr>
            <tr><th>billState:</th><th><input type="text" th:value="${choosedOrder.billState}" name="billState"></th></tr>
            <tr><th>billZip:</th><th><input type="text" th:value="${choosedOrder.billZip}" name="billZip"></th></tr>
            <tr><th>billCountry:</th><th><input type="text" th:value="${choosedOrder.billCountry}" name="billCountry"></th></tr>
            <tr><th>courier:</th><th><input type="text" th:value="${choosedOrder.courier}" name="courier"></th></tr>
            <tr><th>totalPrice:</th><th><input type="text" th:value="${choosedOrder.totalPrice}" name="totalPrice"></th></tr>
            <tr><th>billToFirstName:</th><th><input type="text" th:value="${choosedOrder.billToFirstName}" name="billToFirstName"></th></tr>
            <tr><th>billToLastName:</th><th><input type="text" th:value="${choosedOrder.billToLastName}" name="billToLastName"></th></tr>
            <tr><th>shipToFirstName:</th><th><input type="text" th:value="${choosedOrder.shipToFirstName}" name="shipToFirstName"></th></tr>
            <tr><th>shipToLastName:</th><th><input type="text" th:value="${choosedOrder.shipToLastName}" name="shipToLastName"></th></tr>
            <tr><th>creditCard:</th><th><input type="text" th:value="${choosedOrder.creditCard}" name="creditCard"></th></tr>
            <tr><th>expiryDate:</th><th><input type="text" th:value="${choosedOrder.expiryDate}" name="expiryDate"></th></tr>
            <tr><th>cardType:</th><th><input type="text" th:value="${choosedOrder.cardType}" name="cardType"></th></tr>
            <tr><th>local:</th><th><input type="text" th:value="${choosedOrder.locale}" name="locale"></th></tr>
            <tr><th>alreadyShipped:</th><th><input readonly type="text" th:value="${choosedOrder.alreadyShipped}" name="alreadyShipped"></th></tr>
            <tr>
                <!--                todo:修改完的href-->
                <th colspan="2" style="text-align: center"><button type="submit" style="    background: linear-gradient(
                50deg,#ade6ae, #097acc)">确认修改</button></th>
            </tr>
        </table>
    </form>
</div>


<div th:replace="common/bottom"></div>


</body>
</html>